package com.jd.sys.service.impl;

import com.jd.basic.service.impl.BaseServiceImpl;
import com.jd.sys.domain.SystemDictionaryType;
import com.jd.sys.mapper.SystemDictionaryDetailMapper;
import com.jd.sys.service.ISystemDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
// 查询的方法比较多，使用查询的事务配置
// 只读，事务传播机制=SUPPORTS，有我就用，没有事务就不用
public class SystemDictionaryTypeServiceImpl extends BaseServiceImpl<SystemDictionaryType> implements ISystemDictionaryTypeService {
    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;
    @Override
    public void del(Long id) {
        systemDictionaryDetailMapper.delById(id);
        super.del(id);

    }

    @Override
    public void patchDel(Long[] ids) {
        systemDictionaryDetailMapper.patchDelById(ids);
        super.patchDel(ids);
    }
}
